<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>CSS | 拼命赶进度</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="gitbook/style.css">
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-ace/ace.css">
        
    
        
        <link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
    

        
    
    
    <link rel="next" href="./如何引入CSS.html" />
    
    
    <link rel="prev" href="./表单form元素.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2"
        data-chapter-title="CSS"
        data-filepath="CSS.md"
        data-basepath="."
        data-revision="Sun Sep 03 2017 23:30:11 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="./index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="html.html">
            
                
                    <a href="./html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="常用元素.html">
            
                
                    <a href="./常用元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        常用元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="图片音频视频.html">
            
                
                    <a href="./图片音频视频.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        图片音频视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="列表及表格.html">
            
                
                    <a href="./列表及表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        列表及表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="表单form元素.html">
            
                
                    <a href="./表单form元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        表单form元素
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2" data-path="CSS.html">
            
                
                    <a href="./CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="如何引入CSS.html">
            
                
                    <a href="./如何引入CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        如何引入CSS
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="选择器.html">
            
                
                    <a href="./选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="通配选择符.html">
            
                
                    <a href="./通配选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        通配选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="元素选择符.html">
            
                
                    <a href="./元素选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        元素选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="id 及 class 选择符.html">
            
                
                    <a href="./id 及 class 选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        id 及 class 选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="群组选择符.html">
            
                
                    <a href="./群组选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        群组选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="关系选择符.html">
            
                
                    <a href="./关系选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        关系选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="属性选择符.html">
            
                
                    <a href="./属性选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="伪类选择符.html">
            
                
                    <a href="./伪类选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        伪类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="伪对象选择符.html">
            
                
                    <a href="./伪对象选择符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.8.</b>
                        
                        伪对象选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="CSS的常用样式.html">
            
                
                    <a href="./CSS的常用样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        CSS的常用样式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="字体样式.html">
            
                
                    <a href="./字体样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="元素分类.html">
            
                
                    <a href="./元素分类.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        元素样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="边框.html">
            
                
                    <a href="./边框.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.3.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="盒子模型.html">
            
                
                    <a href="./盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.4.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="段落样式.html">
            
                
                    <a href="./段落样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.5.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="背景样式.html">
            
                
                    <a href="./背景样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.6.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="列表样式.html">
            
                
                    <a href="./列表样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.7.</b>
                        
                        列表样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="变形样式.html">
            
                
                    <a href="./变形样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.8.</b>
                        
                        变形样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="过渡动画.html">
            
                
                    <a href="./过渡动画.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.9.</b>
                        
                        过渡动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="自定义动画.html">
            
                
                    <a href="./自定义动画.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.10.</b>
                        
                        自定义动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="布局.html">
            
                
                    <a href="./布局.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.11.</b>
                        
                        布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="视口.html">
            
                
                    <a href="./视口.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.12.</b>
                        
                        视口
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="CSS总结.html">
            
                
                    <a href="./CSS总结.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.13.</b>
                        
                        CSS总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="JavaScript.html">
            
                
                    <a href="./JavaScript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        JavaScript
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="./" >拼命赶进度</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="css&#x7B80;&#x4ECB;">CSS&#x7B80;&#x4ECB;</h1>
<h2 id="css--cascading-style-sheets-----&#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;">CSS  (Cascading Style Sheets)     &#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;</h2>
<p>   CSS3&#x662F;CSS2&#x7684;&#x5347;&#x7EA7;&#x7248;&#x672C;&#xFF0C;3&#x53EA;&#x662F;&#x7248;&#x672C;&#x53F7;&#xFF0C;&#x5B83;&#x5728;CSS2.1&#x7684;&#x57FA;&#x7840;&#x4E0A;&#x589E;&#x52A0;&#x4E86;&#x5F88;&#x591A;&#x5F3A;&#x5927;&#x7684;&#x65B0;&#x529F;&#x80FD;&#x3002; &#x76EE;&#x524D;&#x4E3B;&#x6D41;&#x6D4F;&#x89C8;&#x5668;chrome&#x3001;safari&#x3001;firefox&#x3001;opera&#x3001;&#x751A;&#x81F3;360&#x90FD;&#x5DF2;&#x7ECF;&#x652F;&#x6301;&#x4E86;CSS3&#x5927;&#x90E8;&#x5206;&#x529F;&#x80FD;&#x4E86;&#xFF0C;IE10&#x4EE5;&#x540E;&#x4E5F;&#x5F00;&#x59CB;&#x5168;&#x9762;&#x652F;&#x6301;CSS3&#x4E86;&#x3002;
&#x4E0D;&#x540C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x53EF;&#x80FD;&#x9700;&#x8981;&#x4E0D;&#x540C;&#x7684;&#x524D;&#x7F00;&#x3002;&#x5B83;&#x8868;&#x793A;&#x8BE5;CSS&#x5C5E;&#x6027;&#x6216;&#x89C4;&#x5219;&#x5C1A;&#x672A;&#x6210;&#x4E3A;W3C&#x6807;&#x51C6;&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;&#x662F;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x79C1;&#x6709;&#x5C5E;&#x6027;&#xFF0C;&#x867D;&#x7136;&#x76EE;&#x524D;&#x8F83;&#x65B0;&#x7248;&#x672C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x90FD;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x524D;&#x7F00;&#x7684;&#xFF0C;&#x4F46;&#x4E3A;&#x4E86;&#x66F4;&#x597D;&#x7684;&#x5411;&#x524D;&#x517C;&#x5BB9;&#x524D;&#x7F00;&#x8FD8;&#x662F;&#x5C11;&#x4E0D;&#x4E86;&#x7684;&#x3002;</p>
<h2 id="css&#x8BED;&#x6CD5;&#x7ED3;&#x6784;">CSS&#x8BED;&#x6CD5;&#x7ED3;&#x6784;</h2>
<p>   CSS&#x8BED;&#x6CD5;&#x7531;&#x4E09;&#x90E8;&#x5206;&#x6784;&#x6210;&#xFF1A;&#x9009;&#x62E9;&#x7B26;&#x3001;&#x5C5E;&#x6027;&#x548C;&#x503C;</p>
<p>   &#x5C5E;&#x6027;&#xFF08;property&#xFF09;&#x662F;&#x60A8;&#x5E0C;&#x671B;&#x8BBE;&#x7F6E;&#x7684;&#x6837;&#x5F0F;&#x5C5E;&#x6027;&#xFF08;style attribute&#xFF09;&#x3002;&#x6BCF;&#x4E2A;&#x5C5E;&#x6027;&#x6709;&#x4E00;&#x4E2A;&#x503C;&#x3002;&#x5C5E;&#x6027;&#x548C;&#x503C;&#x88AB;&#x5192;&#x53F7;&#x5206;&#x5F00;&#x3002;</p>
<p>Selector  { Property : Value; }</p>
<p>&#x9009;&#x62E9;&#x7B26;     &#x5C5E;&#x6027;            &#x503C;</p>
<pre><code>&lt;style type=&quot;text/css&quot;&gt;

                  body { background-color:#cccccc;}

      &lt;/style&gt;
</code></pre><h2 id="css&#x7684;www">CSS&#x7684;www</h2>
<ol>
<li><p>W&#xFF08;what&#xFF09;&#x5B83;&#x662F;&#x4EC0;&#x4E48;</p>
<p>&#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;&#xFF0C;&#x72B9;&#x5982;&#x4E00;&#x5C42;&#x5305;&#x88C5;&#x7EB8;&#xFF0C;&#x5305;&#x88F9;&#x5728;&#x76D2;&#x5B50;&#xFF08;html&#x67B6;&#x6784;&#xFF09;&#x4E0A;&#x3002;</p>
</li>
<li><p>W&#xFF08;why&#xFF09;&#x4E3A;&#x4EC0;&#x4E48;&#x7528;</p>
<p>&#x63D0;&#x9AD8;&#x5F00;&#x53D1;&#x6548;&#x7387;&#xFF0C;&#x66F4;&#x5F3A;&#x5927;&#x7684;&#x6837;&#x5F0F;&#x548C;&#x52A8;&#x753B;&#x529F;&#x80FD;&#xFF0C;&#x66F4;&#x5408;&#x7406;&#x7684;&#x4EE3;&#x7801;&#x7ED3;&#x6784;&#x90E8;&#x7F72;&#x3002;</p>
</li>
<li><p>W&#xFF08;where&#xFF09;&#x54EA;&#x91CC;&#x7528;</p>
<p>&#x5E38;&#x5E38;&#x7ED3;&#x5408;html&#xFF0C;&#x8FDB;&#x884C;&#x9875;&#x9762;&#x6837;&#x5F0F;&#x4E0A;&#x7684;&#x7F8E;&#x5316;&#xFF0C;&#x548C;&#x6784;&#x9020;&#x9875;&#x9762;&#x5E03;&#x5C40;&#xFF0C;&#x54EA;&#x91CC;&#x7528;&#x4E86;html&#xFF0C;&#x5C31;&#x80AF;&#x5B9A;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x5B83;&#x3002;</p>
</li>
</ol>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="./表单form元素.html" class="navigation navigation-prev " aria-label="Previous page: 表单form元素"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="./如何引入CSS.html" class="navigation navigation-next " aria-label="Next page: 如何引入CSS"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="gitbook/app.js"></script>

    
    <script src="gitbook/plugins/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-ace/ace/ace.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-ace/ace.js"></script>
    

    
    <script src="gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"ace":{},"mdinhtml":{},"highlight":{},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
